﻿using System;
namespace Gx.Model
{
    [Serializable]
    public partial class E_EmpLeaveInfo
    {
        private int _id;
        private int _empid;
        private int _vacationsalaryid;
        private DateTime _leavestarttime;
        private DateTime _leaveendtime;
        private string _leavedescribe;
        private bool _ischeck;
        private int _checkuser;
        private DateTime _checktime;
        private int _lastedituser;
        private DateTime _lastedittime;
        private byte _status;
        public int Id
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        public int EmpId
        {
            get
            {
                return _empid;
            }
            set { _empid = value; }
        }
        public int VacationSalaryId
        {
            get
            {
                return _vacationsalaryid;
            }
            set { _vacationsalaryid = value; }
        }
        public DateTime LeaveStartTime
        {
            get
            {
                if (_leavestarttime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _leavestarttime;
            }
            set { _leavestarttime = value; }
        }
        public DateTime LeaveEndTime
        {
            get
            {
                if (_leaveendtime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _leaveendtime;
            }
            set { _leaveendtime = value; }
        }
        public string LeaveDescribe
        {
            get
            {
                if (_leavedescribe == null)
                {
                    return "";
                }
                return _leavedescribe;
            }
            set { _leavedescribe = value; }
        }
        public bool IsCheck
        {
            get
            {
                return _ischeck;
            }
            set { _ischeck = value; }
        }
        public int CheckUser
        {
            get
            {
                return _checkuser;
            }
            set { _checkuser = value; }
        }
        public DateTime CheckTime
        {
            get
            {
                if (_checktime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _checktime;
            }
            set { _checktime = value; }
        }
        public int LastEditUser
        {
            get
            {
                return _lastedituser;
            }
            set { _lastedituser = value; }
        }
        public DateTime LastEditTime
        {
            get
            {
                if (_lastedittime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _lastedittime;
            }
            set { _lastedittime = value; }
        }
        public byte Status
        {
            get
            {
                return _status;
            }
            set { _status = value; }
        }
    }


    public partial class E_EmpLeaveInfo
    {
        public string EmpNum { get; set; }
        public string EmpName { get; set; }
        public string VacationName { get; set; }
        //  public decimal LeaveDay { get; set; }
    }
}
